
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgAdapterConfigDetailBO.cs
// 文件功能描述：配置详细关联
// 
// 
// 创建标识： kevin  2009-6-5 14:29:02
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess.Base.Model.PageObject;
using Strive.DataAccess.Base.BO;
using Strive.DataAccess;
using Strive.Util;
using OTA.Notification.DAO.Adapter;
using OTA.Notification.Entity.Adapter;
using OTA.Notification.Interface.IDAO.Adapter;
using OTA.Notification.Interface.IBO.Adapter;
using Strive.DataAccess.Base.Model.SearcherObject;
using System.Data;

namespace OTA.Notification.BO.Adapter
{
    /// <summary>
    /// [MsgAdapterConfigDetail]BO的业务逻辑
    /// </summary>
    /// <exception cref="BOException ">业务异常</exception>
    /// <exception cref="DAOException ">数据方法异常</exception>
    /// <exception cref="Exception ">系统异常</exception>
    /// <exception cref="StriveException ">NStirve框架异常</exception>
    /// <remarks>该BO已经生成了基本的业务操作，在自动生成的方法中已经提供了事务、缓存、安全、状态、日志等机制。</remarks>
    public abstract class MsgAdapterConfigDetailBO : BaseBOBean<int, MsgAdapterConfigDetailBean, MsgAdapterConfigDetailDao, IMsgAdapterConfigDetailDao>, IMsgAdapterConfigDetailBo
    {

        #region IBaseBoBean 实现

        /// <summary>
        /// 方法名称: SaveBean
        /// 内容摘要: 增、删、改 实体MsgAdapterConfigDetailBean
        /// </summary>
        /// <exception cref="BOExption ">业务异常</exception>
        /// <returns>SaveAction状态</returns>
        public virtual SaveAction SaveBean(MsgAdapterConfigDetailBean obj)
        {
            try
            {
                return base.Save(obj);
            }
            catch (DAOException ex)
            {
                throw new BOExption("访问MsgAdapterConfigDetailBO时调用SaveBean方式错误", ex);
            }
        }

        #endregion

        /// <summary>
        /// 方法名称: SelectByPK
        /// 内容摘要: 由键值获取一个实体对象
        /// </summary>
        /// <exception cref="BOExption ">业务异常</exception>
        /// <returns>MsgAdapterConfigDetail</returns>
        public virtual MsgAdapterConfigDetailBean SelectByPK(int pk)
        {
            try
            {
                return base.Load(pk);
            }
            catch (DAOException ex)
            {
                throw new BOExption("访问MsgAdapterConfigDetailBo时调用SelectByPK方式错误", ex);
            }
        }

        /// <summary>
        /// 方法名称: SelectPageList
        /// 内容摘要: 分页查询对象
        /// </summary>
        /// <exception cref="BOExption ">业务异常</exception>
        /// <returns>分页结果</returns>
        public virtual PageResult<MsgAdapterConfigDetailBean> SelectPageList(BasePageSearch search)
        {
            try
            {
                return base.DomainDAO.SelectPageList(search);
            }
            catch (DAOException ex)
            {
                throw new BOExption("访问MsgProtocolConfigBo时调用SelectPageList方式错误", ex);
            }
        }

        public virtual string getValue(string MsgSendType, string Protocol, string Code)
        {
            return base.DomainDAO.getValue(MsgSendType, Protocol, Code);
        }


        public virtual void DeleteAll(string MsgSendType, string Protocol)
        {
            base.DomainDAO.DeleteAll(MsgSendType, Protocol);
        }

        
    }

}

	